<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<title>用户列表</title>
<%@ include file="common/common.jsp" %>
</head>
<body>
<script type="text/javascript">
var columns = [[    
                 {field:'id',title:'id',width:100},    
                 {field:'userName',title:'姓名',width:100},
                 {field:'userCode',title:'考号',width:100},
                 {field:'userPassword',title:'密码',width:100},
                 {field:'userSex',title:'性别',width:100},
             ]]

function confProblemSet(){
	$('#form-wrapper').dialog({
    	title : '配置审核结果',
    	modal : true,
    	closed : false
    });
}

$(function(){
	$('#userList-dg').datagrid({
		url : '${path}/findUserInfoList',
		columns : columns,
		fitColumns : true, //列宽自适应
		singleSelect : true, //只允许单选
		remoteSort:false,
		//title:'数据大类',
		fit:true,
		striped : true, //斑马行
		rownumbers : true, //显示行数
		pagination : true, //分页组件
		toolbar : "#processResultSet-tb"
	});
});
</script>
<div id="userList-dg"></div>

<div id="processResultSet-tb" style="display: none;">
	<!-- 搜索 -->
	<div>
		<form id="search-fm" style="padding: 10px;width: 100%; border-bottom: 1px solid #e0e0e0;">
		编码：<input name="code" class="easyui-textbox" type="text" style="width:180px">
		名称：<input name="name" class="easyui-textbox" type="text" style="width:180px">
		<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="searchProcessResult()">查询</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="cleanSearch()">清空</a>
		</form>
	</div>
	<!-- 按钮 -->
	<table>
		<tr>
       	 	<td>
    			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="confProblemSet()">新增</a>
    		</td>
       	 	<td>
    			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="ediProblemSet()">编辑</a>
    		</td>
       	 	<td>
    			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="delProblemSet()">删除</a>
    		</td>
       	 	<td>
		    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editEntryOfCategory()">子项详情</a>
		    </td>
       	 	<td>
    			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="reloadData()">刷新数据</a>
    		</td>
       	 	<td>
		</tr>
	</table>
</div>

<div id="form-wrapper" class="easyui-dialog" style="width:400px;height:360px;padding:10px 20px;display: none;" closed="true" buttons="#form-buttons">
    <div class="ftitle">问题集设置</div>
    <form id="problemSet-fm" method="post" >
        <input name="id" type="hidden">
        <input name="updatedTime" type="hidden">
        <div class="fitem">
            <label>选择产品:</label> 
            <input id="product-cc" name="addValue1" >
		</div>
        <div class="fitem">
            <label>问题集名称:</label>
            <input name="name" class="easyui-text">
        </div>
    </form>
</div>
<!-- 编辑保存、取消按钮 --> 
<div id="form-buttons" style="display: none;">
     <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="" style="width:90px">保存</a>
     <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#form-wrapper').dialog('close')" style="width:90px">取消</a>
</div>	
</body>
</html>
